<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ include file="/WEB-INF/view/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>系统字典列表</title>
	<meta name="decorator" content="default"/>
	<%@ include file="/WEB-INF/view/include/dialog.jsp" %>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n, s) {
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
			return false;
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/sys/sysdict/">系统字典列表</a></li>
		<li><a href="${ctx}/sys/sysdict/form">系统字典添加</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="sysdict"
		action="${ctx}/sys/sysdict/" method="post"
		class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}" />
		<input id="pageSize" name="pageSize" type="hidden"
			value="${page.pageSize}" />
		<label>键：</label>
		<form:input path="dkey" htmlEscape="false" maxlength="50"
			class="input-medium" />&nbsp;
			&nbsp;&nbsp;
		<label>值：</label>
		<form:input path="dval" htmlEscape="false" maxlength="50"
			class="input-medium" />&nbsp;
			&nbsp;&nbsp;
		<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" />
	</form:form>
	<tags:message content="${message}"/>
	<table id="contentTable"
		class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>键</th>
				<th>值</th>
				<th>群组</th>
				<th>描述</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.list }" var="sysdict">
				<tr>
					<td>${sysdict.dkey }</td>
					<td>${sysdict.dval }</td>
					<td>${sysdict.dgroup }</td>
					<td>${sysdict.description }</td>
					<td>
						<a href="${ctx}/sys/sysdict/view?id=${sysdict.id }">查看</a>
						&nbsp;&nbsp; <a href="${ctx}/sys/sysdict/form?id=${sysdict.id }">修改</a>
						&nbsp;&nbsp; <a href="${ctx}/sys/sysdict/delete?id=${sysdict.id }">删除</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>